package com.hotelvip.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotelvip.entity.Identity;
import com.hotelvip.entity.VipUser;
import com.hotelvip.vo.VipCardStatistics;
import com.hotelvip.vo.VipInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface VipUserMapper extends BaseMapper<VipUser> {


    @Select("select * from ht_identity")
    List<Identity> selectIdentity();

    List<VipCardStatistics> getVipCardsByMonth(String date);

    void deleteVipUserByUserId(Long userId);

    List<VipInfoVo> getVipInfo(@Param("key") String key);
}
